<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function Computer(color, weight, pinpai, xinghao) {
            this.color = color;
            this.weight = weight;
            this.pinpai = pinpai;
            this.xinghao = xinghao;
            this.watching = function(movie) {
                console.log(movie);
            }
            this.listen = function(music) {
                console.log(music);
            }
            this.play = function(game) {
                console.log(game);

            }
            this.qiao = function(daima) {
                console.log(daima);

            }
        }
        var x = new Computer(1, 1, 1, 1);
        console.log(x);
        x.watching(1)
        x.listen(1);
    </script>
</head>

<body>

</body>

</html>